package com.smedi.ismedi.progress.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.ProjectDateil;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.VersionDetail;
import com.smedi.ismedi.progress.core.port.adapter.persistence.model.ProgressEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 进度计划表Mapper
 *
 * @author pengyan
 * @date 2021/08/28
 */
@Mapper
public interface ProgressMapper extends BaseMapper<ProgressEntity> {
    void updateData(@Param("versionDetail") VersionDetail versionDetail);

    void insertProject(ProgressEntity projectData);

    List<ProgressEntity> findAllProject();

    ProgressEntity getProjectCom(Long projectId);

    ProgressEntity findProject(Long projectId);
}